import request from '@/utils/request'

// 绩效考核明细视图列表
export function getAssessViewList(data) {
  return request({
    url: '/office/bizOfficeAssessScore/viewList',
    method: 'post',
    data
  })
}

// 绩效考核个人列表
export function getAssessPersonList(data) {
  return request({
    url: '/office/bizOfficeAssessScore/personList',
    method: 'post',
    data
  })
}

// 绩效考核公司列表列表
export function getAssessOrgList(data) {
  return request({
    url: '/office/bizOfficeAssessScore/orgList',
    method: 'post',
    data
  })
}

// 绩效考核部门列表列表
export function getAssessDeptList(data) {
  return request({
    url: '/office/bizOfficeAssessScore/deptList',
    method: 'post',
    data
  })
}

// 获取领导分管的部门列表
export function getDeptListByLeader(params) {
  return request({
    url: '/system/user/dept/leader',
    method: 'get',
    params
  })
}
// 获取领导分管的部门绩效列表
export function getBranchList(data) {
  return request({
    url: '/office/bizOfficeAssessScore/branchList',
    method: 'post',
    data
  })
}

// 获取明细视图评分详情
export function getViewDetail(id) {
  return request({
    url: '/office/bizOfficeAssessScore/viewDetail/' + id,
    method: 'post'
  })
}
